﻿<phone:PhoneApplicationPage 
    x:Class="WeatherFrame.MainPage"    
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:my="clr-namespace:WeatherFrame"
    xmlns:local="clr-namespace:ControlTiltEffect"
    local:TiltEffect.IsTiltEnabled="True"
    mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="480"     
    SupportedOrientations="Landscape"  Orientation="Landscape" BackKeyPress="PhoneApplicationPage_BackKeyPress"
    shell:SystemTray.IsVisible="False">
        <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid Background="Transparent">
        <Border >
            <Border.Background>
                <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
                    <GradientStop Color="#666666" Offset="0"/>
                    <GradientStop Color="#666666" Offset="1"/>
                </LinearGradientBrush>
            </Border.Background>
            <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="#5C5C5C" FontSize="72">weatherframe</TextBlock>
        </Border>
        <!--Panorama control-->
        <controls:Panorama Name="MainPanorama" Margin="-14,-26,-34,-1" ItemsSource="{Binding Items}" DefaultItem="{Binding SelectedItem}">
            <controls:Panorama.ItemTemplate>
                <DataTemplate>
                    <my:ItemTemplateSelector Content="{Binding}" Margin="0,0,-15,0"/>
                </DataTemplate>
            </controls:Panorama.ItemTemplate>
            <controls:Panorama.HeaderTemplate>
                <DataTemplate>    
                    <Grid Height="0"/>
                </DataTemplate>
            </controls:Panorama.HeaderTemplate>
            <controls:Panorama.TitleTemplate>
                <DataTemplate>
                    <Grid Height="0"/>
                </DataTemplate>
            </controls:Panorama.TitleTemplate>
            <controls:Panorama.ItemContainerStyle>
                <Style TargetType="Control">
                    <Setter Property="Control.Margin" Value="0"/>
                    <Setter Property="Control.Padding" Value="0"/>
                </Style>
            </controls:Panorama.ItemContainerStyle>
        </controls:Panorama>
    </Grid>
</phone:PhoneApplicationPage>